package com.project.service.impl;

import com.project.dao.IUserDao;
import com.project.dao.impl.UserDaoImpl;
import com.project.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserDao userDao;

    public UserServiceImpl(){
        System.out.println("创建userService");
    }
    @Override
    public void add() {
        userDao.addUser();
    }

    @Override
    public void del() {
        userDao.delUser();
    }
}
